package 抽象工厂模式;

import 简单工厂模式.HairTV;
import 简单工厂模式.TV;

public class HairFactory implements EFactory {
    @Override
    public TV TVProduct() {
        HairTV hairTV = new HairTV();
        System.out.println("正在生产海尔电视");
        hairTV.play();
        return hairTV;
    }

    @Override
    public KT KTProduct() {
        HairKT hairKT = new HairKT();
        System.out.println("正在生产海尔空调");
        hairKT.play();
        return hairKT;
    }
}
